package designpattern.constructor;

/**
 * @author liuyj
 * @Title: ComputerBuilder
 * @create 2020-06-10 17:25
 * @ProjectName demo-designpattern
 * @Description: 构建者设计模式
 */
public class ComputerBuilder {

    private Computer computer=new Computer();
    public void installDisplayer(String displayer){
        computer.setDisplayer(displayer);
    }
    public void installMainUnit(String mainUnit){
        computer.setMainUnit(mainUnit);
    }
    public void installMouse(String mouse){
        computer.setMouse(mouse);
    }

    public void installKeyBoard(String keyboard){
        computer.setKeyboard(keyboard);
    }

    public Computer getComputer() {
        return computer;
    }


}
